import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vueRouter from 'vue-router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
import axios from 'axios'
import {$get,$postkv,$postfile,$postjson} from '@/ajax'

Vue.config.productionTip = false
Vue.prototype.pig="";
Vue.prototype.$id="http://127.0.0.1";
axios.defaults.baseURL="http://127.0.0.1";
// 第三方请求，需要设置代理地址	axios.defaults.baseURL = '/api';
Vue.prototype.$axios = axios;		// 使用时：this.$axios.请求方式('请求地址')
Vue.prototype.$get=$get;
Vue.prototype.$postk=$postkv;
Vue.prototype.$postf=$postfile;
Vue.prototype.$postj=$postjson;

Vue.use(vueRouter);
Vue.use( ElementUI );
Vue.use(VueAwesomeSwiper);
Vue.use(axios);

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
